package com.lianrui.app.order.domain;

import java.io.Serializable;
import java.util.Map;

import net.sf.json.JSONObject;

/**
 * 功能描述：支付配置信息类
 * 
 * @author LJQ
 * 
 * <br>2016年1月15日 上午11:22:53
 */
public class PayCfg implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Integer id;

	private String name;

	private String config;

	private String biref;

	private Double pay_fee;

	private String type;
	
	private Map<String, String> configMap;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getConfig() {
		return config;
	}

	public void setConfig(String config) {
		this.config = config;
	}

	public String getBiref() {
		return biref;
	}

	public void setBiref(String biref) {
		this.biref = biref;
	}

	public Double getPay_fee() {
		return pay_fee;
	}

	public void setPay_fee(Double pay_fee) {
		this.pay_fee = pay_fee;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@SuppressWarnings("unchecked")
	public Map<String, String> getConfigMap() {
		if (configMap == null) {
			configMap = (Map<String, String>) JSONObject.toBean(JSONObject.fromObject(config));
		}
		return configMap;
	}
	
}
